package com.zjy.service;

import com.zjy.bean.UserCollection;
import com.zjy.dto.ArticleCondition;
import com.zjy.dto.ArticleParam;
import com.zjy.dto.ArticleResponse;
import com.zjy.dto.ListResponse;

import java.util.HashMap;
import java.util.List;

/**
 * Created by Administrator on 2019/3/14.
 */
public interface ArticleService {
    void addArticle(ArticleParam articleParam);

    int deleteArticleById(String articleId);

    int updateArticleById(ArticleParam articleParam);

    ArticleResponse selectArticleById(String userId,String articleId);

    void addLike(String userId, String articleId);

    int cancelLike(String userId, String articleId);

    List<ArticleResponse> selectAllArticle();

    ListResponse  selectArticleByCondition(ArticleCondition articleCondition);

    int addArticleCollection(UserCollection userCollection);

    int cancelArticleCollection(UserCollection userCollection);

    HashMap<String,Object> getArticleNum();

}
